#include "GrowingButton.h"
#include "ErrorLogger.h"

namespace SypX
{
	GrowingButton::GrowingButton(float x, float y, float width, float height, float depth, Texture* texture):Button( x, y, width, height, depth, texture )
	{
		origW = width;
		origH = height;
	}

	GrowingButton::~GrowingButton(void)
	{
	}

	void GrowingButton::onIn(SypX::Event& e)
	{
		SypX::ErrorLogger::getLogger()<<"In\n";
		GuiComponent::resizeQuad(origW * 1.1f, origH * 1.1f);
		GuiComponent::onIn(e);
	}

	void GrowingButton::onOut(SypX::Event& e)
	{
		SypX::ErrorLogger::getLogger()<<"Out\n";
		GuiComponent::resizeQuad(origW, origH);
		GuiComponent::onOut(e);
	}

	void GrowingButton::onUp(SypX::Event& e)
	{
		GuiComponent::resizeQuad(origW , origH );
		GuiComponent::onUp(e);
		
	}

	void GrowingButton::onDown(SypX::Event& e)
	{		
		GuiComponent::onDown(e);
	}


}